#include "shape.h"
#include <string>

Shape::Shape(const QString& name)
{

    this->name=name;

    if(name==QString("rMarker"))
    {
        rMarker.exist=true;
        rMarker.position=QPointF(0.,0.);
        return;
    }

    QString s=name;
    this->image=QImage(s.append(QString(".png")));


}

Shape::Shape()
{
}

bool Shape::equal(Shape& shape)const
{
    if(name==shape.name && rMarker.exist==shape.rMarker.exist && uMarker.exist==shape.uMarker.exist)
        return true;
    return false;
}
